package routers

import (
	"github.com/gogf/gf/v2/net/ghttp"
	"seawolf-admin-go/internal/app/admin/controller/sys"
)

func SysReg(s *ghttp.Server, defaultVersion string) {
	s.Group("/sys/department", func(group *ghttp.RouterGroup) {
		sys.NewDepartmentController(group, defaultVersion)
	})
	s.Group("/sys/menu", func(group *ghttp.RouterGroup) {
		sys.NewMenuController(group, defaultVersion)
	})
	s.Group("/sys/role", func(group *ghttp.RouterGroup) {
		sys.NewRoleController(group, defaultVersion)
	})
	s.Group("/sys/position", func(group *ghttp.RouterGroup) {
		sys.NewPositionController(group, defaultVersion)
	})

	s.Group("/sys/attachment", func(group *ghttp.RouterGroup) {
		sys.NewAttachmentController(group, defaultVersion)
	})

	s.Group("/sys/attachmentGroup", func(group *ghttp.RouterGroup) {
		sys.NewAttachmentGroupController(group, defaultVersion)
	})
}
